export interface IMyObject {
  name: string;

  toString():string
}

export class MyObject implements IMyObject {
  name= ""

  constructor(name="") {
    this.name = name
  }

  toString(): string {
    return this.name
  }
}